/*
 * Copyright 2017 Baiyyy
 * @(#)Warning.java
 */

package com.byyy.ccts.modules.cc.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byyy.ccts.modules.cc.entity.ccts.Warning;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by DELL on 2018-8-21.
 */
public interface WarningMapper extends BaseMapper<Warning> {

    List<Warning> selectWarningPage(Page<Warning> page, @Param("ew") Wrapper<Warning> wrapper);

    List<Warning> queryHumitureWarningInfo(@Param("lowerLimit") float lowerLimit, @Param("upperLimit") float upperLimit);

    int insertHumitureWarned(Warning warning);

    int updateHumitureWarned(@Param("tableName")String tableName, @Param("warning") Warning warning);

    List<Warning> queryLastestHumitureInfo();

}
